<?php
$arrUrl = split("##", $_POST["Url"]);
$strCon = '<?php'."\n";
$strCon .= '$_arrHack["Url"] = array();'."\n";

foreach($arrUrl as $strU){
	$strU = trim($strU);
	$strU = str_replace(chr(10), "", $strU);
	$strU = str_replace(chr(13), "", $strU);
	if($strU != ""){
		$strCon .= '$_arrHack["Url"][] = "'.$strU.'";'."\n";
	}
}
$strCon .= '$_arrHack["File"] = "'.$_POST["File"].'";'."\n";
$strCon .= '$_arrHack["ReSec"] = "'.$_POST["ReSec"].'";'."\n";
$strCon .= '$_arrHack["Begin"] = "'.$_POST["Begin"].'";'."\n";
$strCon .= '$_arrHack["STop"] = "'.$_POST["STop"].'";'."\n";
$strCon .= '$_arrHack["Date"] = "'.$_POST["Date"].'";'."\n";
$strCon .= '?>';

$strFile = "/home/share/ramdisk/common/SysParam.inc.php";
if(!$fp = fopen($strFile, "w")){
	exit("open file error!!");
}
if(!fputs($fp, $strCon)){
	exit("write file error!!");
}
fclose($fp);
?>Success!!  <a href="changeHK.php">Back</a>